﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SRAGWMCLib.OO
{
    /// <summary>
    /// Contains the values that define the map scale 
    /// </summary>
    public class Range
    {
        /// <summary>
        /// Sets the minimum map scale (standard 10000)
        /// </summary>

        public double Maximum { get; set; }

        /// <summary>
        /// Sets the maximum map scale (standard 400000000)
        /// </summary>
       
        public double Minimum { get; set;}

        /// <summary>
        /// Value of the magnification to be applied to the map. 
        /// If no magnification is to be applied it is set as "1".
        /// NOTE: As it decreases, the map decreases in scale 
        /// until reaching the minimum set value
        /// </summary>

        public double MagFact { get; set;}

        /// <summary>
        /// Fills the Range data
        /// </summary>
        /// <param name="pMagFact">Factor of magnification</param>
        /// <param name="pMaximum">Maximum map scale</param>
        /// <param name="pMinimum">Minimum map scale</param>

        public Range(double pMagFact, double pMaximum, double pMinimum) 
        {

            MagFact = pMagFact;
            Maximum = pMaximum;
            Minimum = pMinimum;
                        
        }
    }
}
